from django.urls import path
from rest_framework.routers import SimpleRouter

from goods.views import FoodCategoryView, FoodView

router = SimpleRouter()
# 前端访问 /api/goods/foodtype/   调用父类ListModelMixin
router.register('foodcategory', FoodCategoryView)
router.register('goods', FoodView)
urlpatterns = []
urlpatterns += router.urls
